package com.tyl.test;

import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import org.junit.Test;

public class Producer {
    //生产者
    public static void main(String[] args) {
        ConnectionFactory factory = new ConnectionFactory();
        //把我们生产者的地址用户密码写入
        factory.setHost("192.168.56.197");
        factory.setUsername("admin");
        factory.setPassword("123");

    }
}
